﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GameSquares
{
    public partial class FormPlayerName : Form
    {
        public FormPlayerName()
        {
            InitializeComponent();
        }

        GraphItem graphItemIcon = null;
        public string PlayerName = "Гравець";


        private void textBoxName_TextChanged(object sender, EventArgs e)
        {
            PlayerName = textBoxName.Text;
        }

        private void FormPlayerName_Load(object sender, EventArgs e)
        {
            textBoxName.Text = PlayerName;          // Імя
            graphItemIcon = new GraphItem(this);    // Графелемент
            graphItemIcon.Visible = true;         
            graphItemIcon.Color = Color.Blue;
            graphItemIcon.Active = true;  
            graphItemIcon.CellCoordinate = new Rectangle(10, 10, 80, 80); // пооложення і розмір
        }



    }
}

